﻿@using Janus.Mes.WebClient;
@using Janus.BaseEntitys;
@using Janus.Mes.VO;
@model CustomSampHVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "抽样表";
}
<div class="pageContent">
    <form method="post" action="Quality/SampleDefin/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            <p>
                <label>
                    抽样表编号:
                </label>
                @if (ViewBag.IsCreate == true)
                {
                    @Html.TextBoxFor(c => c.CustSCode, new { @class = "required IsExisted", ajaxurl = "Quality/SampleDefin/IsExist" })
                }
                else
                {
                    @Html.TextBoxFor(c => c.CustSCode, new { @Readonly = "true" })
                }
                @Html.ValidationMessageFor(c => c.CustSCode)
            </p>
            <p>
                <label>
                    抽样表名称：
                </label>
                @Html.TextBoxFor(c => c.CustSName, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.CustSName)
            </p>
            <fieldset>
                <legend>采样表</legend>
                <ul>
                    <li>
                        <p>
                            <label>
                                严格性/AQL
                            </label>
                            @Html.RadioButtonFor(c => c.SampParameter,1, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.SampParameter)
                        </p>
                    </li>
                    <li>
                        <p>
                            <label>
                                严格性
                            </label>
                            @Html.RadioButtonFor(c => c.SampParameter,2, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.SampParameter)
                        </p>
                    </li>
                </ul>
            </fieldset>

            @*<p>            
                <a class="btnLook" href="Quality/SampleDefin/Select" lookupgroup="org1">添加/编辑检验参数</a>
                <span>添加检验参数</span>
            </p>*@
            @*<table class="treetable list" width="100%">
                <thead>
                    <tr class="header">                       
                        <th>检验水平编码</th>
                        <th>检验水平</th>
                        <th>严格程度编码</th>
                        <th>严格程度</th>
                        <th>AQL值</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>01</td>
                        <td>一般水平(I)</td>
                        <td>10</td>
                        <td>正常检验</td>
                        <td>0.065</td>
                        <td><a href="javascript:void(0);" class="btn btn-primary btn-sm" id="btnSearch">删除</a>&nbsp;&nbsp;<a href="javascript:void(0);" class="btn btn-primary btn-sm" id="btnSearch">修改</a></td>
                    </tr>
                    <tr>
                        <td>02</td>
                        <td>一般水平(II)</td>
                        <td>11</td>
                        <td>加严检验</td>
                        <td>0.1</td>
                        <td><a href="javascript:void(0);" class="btn btn-primary btn-sm" id="btnSearch">删除</a>&nbsp;&nbsp;<a href="javascript:void(0);" class="btn btn-primary btn-sm" id="btnSearch">修改</a></td>
                    </tr>
                </tbody>
            </table>*@
            @Html.Partial("Operation", Model)
        </div>
        
        @Html.Partial("FormButtonBar")
    </form>
</div>
